package com.weirdor.wxchat.support.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Created by weirdor on 2017/10/27.
 */
public class MongoParam {
    private static final Log log = LogFactory.getLog(MongoParam.class);

    private static String host;
    private  static  String  port;
    static PropertiesUtil p;
    static {
        try{
            p = new PropertiesUtil();
            host = p.readProperties("mongo.host");
            port = p.readProperties("mongo.port");

        }catch(Exception ex){
            log.debug("加载配置文件："+ex.getMessage());
        }
    }
    public MongoParam() {
        super();
    }

    public static void setHost(String host) {
        MongoParam.host = host;
    }

    public static String getHost() {
        return host;
    }

    public static void setPort(String port) {
        MongoParam.port = port;
    }

    public static String getPort() {
        return port;
    }
}
